<template>
  <el-radio-group v-model="type" @input="changeType">
    <el-radio-button v-for="(item,index) in types" :key="index" :label="item.label">{{item.text}}</el-radio-button>
  </el-radio-group>
</template>

<script>
export default {
  name: "AuditTypes",
  data() {
    return {
      type: -1,
      types: [{text: "未审核", label: -1}, {text: "不通过", label: 0}, {text: "通过", label: 1}]
    }
  },
  methods: {
    changeType(){
      this.$emit("input",this.type)
    }
  },
  mounted() {
    this.changeType()
  }
}
</script>

<style scoped>

</style>